﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="JT_ReturnManager.aspx.cs" Inherits="JTicket.UI.JT_ReturnManager" EnableViewState="false" %>
<%@ OutputCache Duration="1" Location="Any" NoStore="true" VaryByParam="*" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    setInterval("window.location.reload();", 10000);
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="center" border="0" cellpadding="4" cellspacing="1" 
        class="toptable grid" width="100%">
        <tr>
            <td class="category t2" height="25" width="100px">
                退票审核管理 
            </td>
            <td class="category" height="25">
                <a href="JT_ReturnManager.aspx?S=1">未审核记录</a>
                <a href="JT_ReturnManager.aspx?S=2">已审核记录</a>
            </td>
        </tr>
    </table>
    
    <div id="pager" class="pagination" style="background: #FFFFFF">
                                <asp:DataGrid ID="dg1" runat="server" 
            AutoGenerateColumns="False" CellPadding="0"
                                    OnItemDataBound="dg1_ItemDataBound" PageSize="20" 
            Width="100%">
                                    <HeaderStyle BackColor="#3890B5" Height="25px" HorizontalAlign="Center" />
                                    <ItemStyle BackColor="#F6F6F6" Height="25px" HorizontalAlign="Center" />
                                    <Columns>
                                        <asp:BoundColumn DataField="BarCode" HeaderText="票号">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="stitlecode" HeaderText="演出编号">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="Stitle" HeaderText="演出名称">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="Titlesort" HeaderText="演出类别">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="area" HeaderText="区域">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="snote" HeaderText="子分区">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="row" HeaderText="排号">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="cow" HeaderText="座位号">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="sixcode" HeaderText="座位编号">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="Ticketname" HeaderText="票类名称">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="price" HeaderText="单价">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="saleamt" HeaderText="销售价格">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="折扣">
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "zhekou")%>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn DataField="opercode" HeaderText="操作员">
                                            <HeaderStyle CssClass="B" />
                                        </asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="操作日期">
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "saledate")%>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="操作时间">
                                            <ItemTemplate>
                                                <%# DataBinder.Eval(Container.DataItem, "saletime")%>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                         <asp:TemplateColumn HeaderText="审核">
                                            <ItemTemplate> 
                                          <asp:LinkButton ID="ImageButton1" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BarCode").ToString()%>'   CommandName="Print"   OnClientClick="return confirm('确定要执行审核通过操作!');"  OnCommand="ImageButton1_Command"  ><%#state(DataBinder.Eval(Container.DataItem, "status").ToString())%></asp:LinkButton> 
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="B" />
                                        </asp:TemplateColumn>
                                    </Columns>
                                    <PagerStyle Visible="False" />
                                </asp:DataGrid>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr bgcolor="#E7E7E7">
            <td align="center" bgcolor="#E7E7E7" colspan="4" style="color: #000000">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
